<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
    <style>
        body,
        html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            font-family: 'Arial', sans-serif;
            color: #2165ad;
        }

        header {
            background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('background.jpg');
            background-size: cover;
            color: #fff;
            text-align: center;
            padding: 150px 0;
        }

        header h1 {
            font-size: 48px;
            margin: 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        main {
            padding: 40px;
            background-color: #a478c0;
            text-align: center;
        }

        main p {
            margin: 20px 0;
            line-height: 1.6;
            font-size: 18px;
            color: #555;
        }

        footer {
            background-color: #27319d;
            color: #fff;
            text-align: center;
            padding: 20px;
            position: fixed;
            bottom: 0;
            width: 100%;
        }

        /* 添加一些简单的动画效果 */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        body {
            animation: fadeIn 1s ease-out forwards;
        }

        /* 添加一些细节样式 */
        a {
            color: #007bff;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }
    </style>
</head>

<body>
    <header>
        <h1>欢迎来到我的网站</h1>
    </header>
    <main>
        <p>这是一个精心设计的HTML页面，拥有吸引人的颜色搭配和细致的视觉细节。</p>
        <p>您可以添加更多内容，如<a href="#">链接</a>、图片、列表等，来丰富您的网站。</p>
    </main>
    <footer>
        <p>版权所有 &copy; 2023</p>
    </footer>
</body>

</html>